{% extends 'base/layout.html' %}


{% block content_header %}
  {% include 'widget/header.html' %}
{% endblock %}


{% block content_main_before %}
{% endblock %}


{% block content_main %}
<div class="row">

  <div class="col-xs-12 bg-white round-corner">

    {% include '../widget/page_content.html' %}
    {# force remove #revision-toc from #content_main of parent #}
    <script>
      $('#revision-toc').remove();
    </script>

  </div> {# /.col- #} {# relocate #revision-toc #}
  <div class="col-lg-2 col-md-3 revision-toc-container hidden-sm hidden-xs">
    <div id="revision-toc" class="revision-toc affix" data-spy="" data-offset-top="80">
      <div id="revision-toc-content" class="revision-toc-content"></div>
    </div>
  </div> {# /.col- #}

</div>

  {% if 'growi' === getConfig('crowi', 'customize:behavior') || 'crowi-plus' === getConfig('crowi', 'customize:behavior') %}
  <div class="row page-list p-t-10 m-t-30 m-b-30 round-corner">
    <div class="col-md-10">
      {% include '../widget/page_list_and_timeline.html' %}
    </div>
  </div>
  {% endif %}
{% endblock %}


{% block content_main_after %}
  {% include 'widget/comments.html' %}

  {% if page %}
    {% include '../widget/page_attachments.html' %}
  {% endif %}
{% endblock %}


{% block body_end %}
  <div id="presentation-layer" class="fullscreen-layer">
    <div id="presentation-container"></div>
  </div>

  <div id="crowi-modals">
    {% include '../widget/page_modals.html' %}
  </div>
{% endblock %}
